home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3progre.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  4.0 KB  |  156 lines

  1.  
  2. // JavaScript wrapper for r3progre.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_PROGRE_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_PROGRE = 247;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Set current value for the progress idicator
  16. // Virtual method
  17. // p3: Integer, value for the progress indicator
  18.  
  19. R3PROGREM_PROGRESSTO = 247000;
  20.  
  21. function mR3PROGREM_PROGRESSTO(p3) {
  22.   DoA(this.r3obj, 247000, p3, R3TID_INTEGER, 0);
  23. }
  24.  
  25. // Description: Initialize progress indicator.
  26. // Virtual method
  27. // p3: Integer, max value for the progress indicator.
  28.  
  29. R3PROGREM_BEGIN = 247001;
  30.  
  31. function mR3PROGREM_BEGIN(p3) {
  32.   DoA(this.r3obj, 247001, p3, R3TID_INTEGER, 0);
  33. }
  34.  
  35. // Description: End progress session. If there is a parent progress level, it is incremented by
  36. //      its    * R3PROGREA_ChildRange defined amount.
  37. // Virtual method
  38.  
  39. R3PROGREM_END = 247002;
  40.  
  41. function mR3PROGREM_END() {
  42.   DoA(this.r3obj, 247002, 0, R3TID_INTEGER, 0);
  43. }
  44.  
  45. // Description: Show given text.
  46. // Virtual method
  47. // p3: String, string to be shown
  48.  
  49. R3PROGREM_SHOWTEXT = 247003;
  50.  
  51. function mR3PROGREM_SHOWTEXT(p3) {
  52.   DoA(this.r3obj, 247003, p3, R3TID_STRING, 0);
  53. }
  54.  
  55. // Description: Set current relative value 0..1 for the progress indicator
  56. // Virtual method
  57. // p3: Number, relative value for the progress indicator
  58.  
  59. R3PROGREM_PROGRESSTORELATIVE = 247004;
  60.  
  61. function mR3PROGREM_PROGRESSTORELATIVE(p3) {
  62.   DoA(this.r3obj, 247004, p3, R3TID_FLOAT, 0);
  63. }
  64.  
  65. // Description: Complete reset of all descending progress levels. Because of hierarchical nature,    * this method should
  66. //      be only called by the owner (=creator) of the progress indicator.
  67. // Virtual method
  68.  
  69. R3PROGREM_RESET = 247005;
  70.  
  71. function mR3PROGREM_RESET() {
  72.   DoA(this.r3obj, 247005, 0, R3TID_INTEGER, 0);
  73. }
  74.  
  75. // Description: Ask if progress indicator canceling has been requested
  76. // Virtual method
  77.  
  78. R3PROGREM_ISCANCELED = 247006;
  79.  
  80. function mR3PROGREM_ISCANCELED() {
  81.   DoA(this.r3obj, 247006, 0, R3TID_INTEGER, 0);
  82. }
  83.  
  84. // Virtual method
  85.  
  86. R3PROGREM_INCREMENT = 247007;
  87.  
  88. function mR3PROGREM_INCREMENT() {
  89.   DoA(this.r3obj, 247007, 0, R3TID_INTEGER, 0);
  90. }
  91.  
  92.  
  93.  
  94.  
  95. R3PROGREA_InfoString = 247500;
  96. function SetR3PROGREA_InfoString(value) {
  97.   R3Set(this.r3obj, R3PROGREA_InfoString, value, R3TID_STRING, 0); 
  98. }
  99.  
  100. function GetR3PROGREA_InfoString() {
  101.   return R3Get(this.r3obj, R3PROGREA_InfoString, R3TID_STRING, 0); 
  102. }
  103.  
  104. R3PROGREA_ChildRange = 247501;
  105. function SetR3PROGREA_ChildRange(value) {
  106.   R3Set(this.r3obj, R3PROGREA_ChildRange, value, R3TID_FLOAT, 0); 
  107. }
  108.  
  109. function GetR3PROGREA_ChildRange() {
  110.   return R3Get(this.r3obj, R3PROGREA_ChildRange, R3TID_FLOAT, 0); 
  111. }
  112.  
  113. R3PROGREA_TotalRelative = 247502;
  114. function GetR3PROGREA_TotalRelative() {
  115.   return R3Get(this.r3obj, R3PROGREA_TotalRelative, R3TID_FLOAT, 0); 
  116. }
  117.  
  118. R3PROGREA_CurrentRelative = 247503;
  119. function GetR3PROGREA_CurrentRelative() {
  120.   return R3Get(this.r3obj, R3PROGREA_CurrentRelative, R3TID_FLOAT, 0); 
  121. }
  122.  
  123. R3PROGREA_CancelCode = 247504;
  124. function SetR3PROGREA_CancelCode(value) {
  125.   R3Set(this.r3obj, R3PROGREA_CancelCode, value, R3TID_INTEGER, 0); 
  126. }
  127.  
  128. function GetR3PROGREA_CancelCode() {
  129.   return R3Get(this.r3obj, R3PROGREA_CancelCode, R3TID_INTEGER, 0); 
  130. }
  131.  
  132.  
  133.  
  134. function r3Progre () { 
  135.    // Methods
  136.    this.PROGRESSTO=mR3PROGREM_PROGRESSTO;
  137.    this.BEGIN=mR3PROGREM_BEGIN;
  138.    this.END=mR3PROGREM_END;
  139.    this.SHOWTEXT=mR3PROGREM_SHOWTEXT;
  140.    this.PROGRESSTORELATIVE=mR3PROGREM_PROGRESSTORELATIVE;
  141.    this.RESET=mR3PROGREM_RESET;
  142.    this.ISCANCELED=mR3PROGREM_ISCANCELED;
  143.    this.INCREMENT=mR3PROGREM_INCREMENT;
  144.  
  145.    // Attributes
  146.    this.GetInfoString=GetR3PROGREA_InfoString;
  147.    this.SetInfoString=SetR3PROGREA_InfoString;
  148.    this.GetChildRange=GetR3PROGREA_ChildRange;
  149.    this.SetChildRange=SetR3PROGREA_ChildRange;
  150.    this.GetTotalRelative=GetR3PROGREA_TotalRelative;
  151.    this.GetCurrentRelative=GetR3PROGREA_CurrentRelative;
  152.    this.GetCancelCode=GetR3PROGREA_CancelCode;
  153.    this.SetCancelCode=SetR3PROGREA_CancelCode;
  154. }
  155.  
  156. // r3progre.h_H